/**
 * 图片审核状态枚举
 */
interface OptionsType {
  label: string
  value: number
}

// 枚举值
export enum PictureReviewStatus {
  /** 未审核 */
  UNREVIEWED = 0,
  /** 通过 */
  PASS = 1,
  /** 拒绝 */
  REJECT = 2,
}

// 枚举值描述
export const PictureReviewStatusMap: Record<number, string> = {
  [PictureReviewStatus.UNREVIEWED]: '未审核',
  [PictureReviewStatus.PASS]: '通过',
  [PictureReviewStatus.REJECT]: '拒绝',
}

// 选项
export const PictureReviewStatusOptions: OptionsType[] = Object.keys(PictureReviewStatusMap).map((key: number) => ({
  label: PictureReviewStatusMap[key],
  value: key,
}))
